package com.chh.exam.survey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName wj_survey_question
 */
@TableName(value ="wj_survey_question")
@Data
public class SurveyQuestion implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 关联问卷id
     */
    private Integer surveyId;

    /**
     * 类型
     */
    private Integer questionType;

    /**
     * 类型描述
     */
    private String questionTypeDesc;

    /**
     * 题目内容
     */
    private String content;

    /**
     * 分值
     */
    private Integer score;

    /**
     * 排序
     */
    private Integer orderNum;

    /**
     * 正确答案
     */
    private String correctAnswer;

    /**
     * 题型编辑组件
     */
    private String questionEditorComponent;

    /**
     * 答案选项展示组件名称
     */
    private String component;

    /**
     * 
     */
    private Date fcd;

    /**
     * 
     */
    private Date lud;

    @TableField(exist = false)
    public List<SurveyQuestionOption> answerOptions = new ArrayList<>();



    @TableField(exist = false)
    private String userAnswer;

    @TableField(exist = false)
    private Integer answerValid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}